package com.eemint.entity;


import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/*** 
 *  Copyright (C), 2019,12, eemint
 *  File name and path : com.eemint.entity.MailInfo.java
 *  Author : Dallas,    
 *  Version : 1.0,    
 *  First complete date : 2019/12/24 11:50
 *  Description :  邮箱基础信息实体类
 *  History:  nothing
 *    
 ***/
@Data
public class MailInfo {
    @Length(min = 2,max = 30)
    @NotBlank(message = "昵称不可为空")
    private String nick;         //昵称,
    @Length(min = 2,max = 100)
    @NotBlank(message = "邮箱不可为空")
    @Email
    private String mail;      //邮箱地址,
    @Length(min = 2,max = 500)
    @NotBlank(message = "留言不可为空")
    private String remark;        //备注,
}
